package model

import "duoke/tables"

type CourseShareListReq struct {
	ShareType int `json:"share_type"`
	PageSize  int `json:"pageSize"`
	PageNo    int `json:"pageNo"`
}
type CourseJoinList struct {
	*tables.CourseShare
	*tables.CourseList `xorm:"extends"`
}
type CourseShareListRsp struct {
	*tables.CourseShare
	Id               int     `json:"id"`
	Pic              string  `json:"pic"`
	NumberOfLearners int     `json:"number_of_learners" `
	Price            float32 `json:"price"`
	Title            string  `json:"title"`
}

func (CourseJoinList) TableName() string {
	return "course_share"
}
